﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Motion
{
    public interface IDigitalIO
    {
        bool IsError { get; }
        string LastError { get; }
        bool[] GetInPortStatus(short cardNo);
        bool[] GetOutPortStatus(short cardNo);
        bool GetInBitStatus(short cardNo, short bitNo);
        bool GetOutBitStatus(short cardNo, short bitNo);
        void SetOutBitStatus(short cardNo, short bitNo);
        void ClearOutBitStatus(short cardNo, short bitNo);
        bool CheckApiResult(short rtn, string errMessage);
    }
}
